package com.shisan.tingshu.search.client;

import com.shisan.tingshu.common.result.Result;
import com.shisan.tingshu.search.client.impl.SearchDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * 产品列表API接口
 */
@FeignClient(value = "service-search", fallback = SearchDegradeFeignClient.class)
public interface SearchFeignClient {

    @PutMapping("/api/inner/searchinfo/preRankingToCache")
    Result<Boolean> preRankingToCache();
}